<?php
use yii\bootstrap\ActiveForm;
use common\helps\tools;
?>

<link rel="stylesheet" href="../static/dist/css/AdminLTE.min.css" type="text/css">
<link rel="stylesheet" href="../static/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../static/plugins/datatables/jquery.dataTables.css" type="text/css">
<link rel="stylesheet" href="../static/css/admin.css" type="text/css">
<link rel="stylesheet" href="../static/jBox/Skins/Metro/jbox.css" type="text/css">
<link rel="stylesheet" href="../static/plugins/datepicker/datepicker3.css" type="text/css">


<div class="tabs-panel">

    &nbsp;&nbsp;&nbsp;&nbsp;<textarea name="billNo" id="billNo" cols="150" rows="40"></textarea>
<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;<button onclick="tijiao()">提交</button>
</div>

<script type="text/javascript" src="../static/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script type="text/javascript" src="../static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../static/plugins/datatables/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="../static/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script type="text/javascript" src="../static/jBox/jquery.jBox-2.3.min.js"></script>
<script type="text/javascript" src="../static/jBox/i18n/jquery.jBox-zh-CN.js"></script>
<!-- 自定义js -->
<script type="text/javascript" src="/static/plugins/datepicker/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="/static/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script type="text/javascript" src="/static/app/global.js?version=<?=Yii::$app->params['version']?>"></script>
<script type="text/javascript" src="/static/app/bill/detail.js?version=<?=Yii::$app->params['version']?>"></script>
<script type="text/javascript">
function tijiao() {

    $.jBox.tip('耐心等待……', 'success');
    var billNo = $('#billNo').val();
    $.post('/bill/sync2', {billNo:billNo},
        function (data) {
            $.jBox.closeTip();
            if(data.code == 200){
                $.jBox.tip('操作成功', 'success');
                table.draw(false);
            }else{
                $.jBox.error(data.val, '错误');
            }
        },
        'json'
    );
}
</script>
